﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCoreDefault.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
    <h3>dotnet命令或msbuild命令无法编译mvc项目</h3>
    1.使用nuget安装编译文件。
    <pre>
         MSBuild.Microsoft.VisualStudio.Web
    </pre>
    2.确认项目中的引用指向正确的路径
    <pre>
        &lt;Import Project="..\packages\MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3\build\MSBuild.Microsoft.VisualStudio.Web.targets.props" Condition="Exists('..\packages\MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3\build\MSBuild.Microsoft.VisualStudio.Web.targets.props')" />
    </pre>
    3.使用dotnet命令行编译
    <pre>
        echo off
        dotnet msbuild PaoTui.Agency.csproj
        pause
    </pre>
</body>
</html>